function show_sub_menu(element) {
	var parent = element.parentNode;
	var target = parent.getElementsByTagName("ul")[0];
	target.style.display = "block";
}

function hide_sub_menu(element) {
	var parent = element.parentNode;
	var target = parent.getElementsByTagName("ul")[0];
	target.style.display = "none";
}

function toggle_mobile_menu() {
	var target = document.getElementById("top-top-menu");
	if (target.style.display == "block") {
		target.style.display = "none";
	}
	else {
		target.style.display = "block";
	}
}

function toggle_mobile_sub_menu(element) {
	var parent = element.parentNode;
	var target = parent.getElementsByTagName("ul")[0];
	if (target.style.display == "block") {
		target.style.display = "none";
	}
	else {
		target.style.display = "block";
	}
}
